package cn.mazexal.examapi.controller;

import cn.mazexal.examapi.common.models.MultiResponse;
import cn.mazexal.examapi.models.qry.ExamBankIdQry;
import cn.mazexal.examapi.models.vo.XmindLogVO;
import cn.mazexal.examapi.services.ResourceService;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: Mazexal
 * Date: 2025/8/30
 */
@RestController
@Tag(name = "resource", description = "资源信息接口")
@RequestMapping("/resource")
@Slf4j
public class ResourceController {

    @Resource
    private ResourceService resourceService;

    @Schema(description = "获取XMind资源列表")
    @RequestMapping("/getXmindLogList")
    public MultiResponse<XmindLogVO> getXmindLogList(@RequestBody ExamBankIdQry qry) {
        return MultiResponse.of(resourceService.getXmindLogList(qry));
    }
}
